$(function(){
    var params=Params();
    loginTest();
    changeHtml();


    /*选择页面ID*/
    function Params() {
        var result = {};
        var arr = location.search.replace(/^\?/, '').split(/\&/g);
        result.docName = location.pathname.match(/\/([a-zA-Z_]+)\.html$/)[1];
        result.hash = location.hash.replace(/^\#/, '');
        for (var i = 0, n = arr.length; i < n; i++) {
            var key = arr[i].split(/\=/)[0];
            result[key] = arr[i].split(/\=/)[1];
        }
        return result;
    }
    /*获取ID对页面修改*/
    function changeHtml(){
        var id=params.id;
        var orderDatas=LsyStorage.getItem('orderList_'+id);
        var orderNum=$('#orderNum');
        var expressImg=$('#expressImg');
        var access=$('#access');
        orderNum.text(orderDatas.orderNumber);
        expressImg.attr("src",orderDatas.imgSrc);
        access.attr("href","evaluate.html?id="+id+"")
    }
});
